package thread;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hua YY
 * Date: 2024-09-22
 * Time: 9:28
 */


public class ThreadDemon24 {
    public static void main(String[] args) {
        Object locker = new Object();
        Thread t1 = new Thread(()->{
            synchronized(locker){
                synchronized(locker){
                    System.out.println("hello");
                }
            }
        });
        t1.start();
    }
}


